{include file="findInclude:common/templates/header.tpl"}

<style>
    body {
        background: url(modules/notes/images/compliant/wallpaper.jpg);
        background-attachment: fixed;
    }
</style>

<body class="modern-ui" onresize="Resize()">
<div class="page">
{foreach $note as $item}
<div class="tile triple bg-color-green note" style="cursor: default;">
        <div class="tile-content">
                <img src="{$item['img']}" height = "50" width = "50" class="place-left"/>
                <h4 style="margin-bottom: 5px;">{$item['username']} {if $item['loc'] != ""}@{$item['loc']}{/if} {$item['date']}</h4>
                <p>
                        {$item['message']}  
                </p>
        </div>
        {if {$item['login']}}
                <div class="likeimg" id="likeimg{$item['postID']}" style="z-index: 2">
                      <img onclick="likes('{$item['postID']}');" src="{$item['likeimg']}" style="width: 24px; height: 24px"/>
                </div>
                
                <div class="likes" id="likes{$item['postID']}"><span class="name">{$item['likes']}</span></div>
                
                <div id="flagimg{$item['postID']}" class="flag" style="z-index: 2"><img onclick="flags('{$item['postID']}');" src="{$item['flagimg']}"/></div>    
        {/if}
</div>
{include file="findInclude:modules/notes/templates/results.tpl" results=$replies}
        {if {$loggedIn}}
            <div class="tile quadro bg-color-blueDark" style="cursor: default; height: 100px;">
                    <div class="tile-content">
                            <div class="input-control textarea span4"  >
                                    <textarea name="reply" id="reply" required="required" class="textarea" maxlength="140" style="background-color: black; min-height:60px; position:absolute;"></textarea>
                            </div>

                            <input type="button" value="Reply" style="position: absolute; top: 37px; right: 13px;" onClick="CheckReply({$item['postID']});"/>
                            <span id="error" style="color: #ffffff; top: 15px; right: 15px; position: absolute;"></span>
                    </div>
            </div>
        {/if}
{/foreach}            
</div>
</body>
{include file="findInclude:common/templates/footer.tpl"}
